<?php
/**
 * RoomModel
 *
 * PHP Version 5.4
 *
 * @author baohui  <baohui@icesmart.cn>
 */
namespace Model;
use Think\Model;
/**
 * Class RoomModel
 */
class RoomModel extends BaseModel
{
    /**
     * construct
     */
    public function __construct()
    {
        $this->tableName  = 'live_rooms';
        $this->primaryKey = 'id';
        parent::__construct();
    }


    /**
     * 获取直播间主播
     */
    public function queryUser()
    {
        $roomUserList = $this->where('userId != 0')->field('userId')->select();

        return $roomUserList;
    }
}